home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Libraries / C Internet Config / IC Application Source ƒ / Headers ƒ / IC IconSuites.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-20  |  1.1 KB  |  50 lines  |  [TEXT/SPM ]

  1. /*
  2.     IC IconSuites.h
  3.     
  4. */
  5.  
  6. #pragma once
  7.  
  8. #ifndef __H_IC_IconSuites__
  9. #define __H_IC_IconSuites__
  10.  
  11. #define cache_max 20
  12.  
  13. #define kDocSuiteID -4000
  14. #define kAppSuiteID -3996
  15.  
  16. #if defined(powerc) || defined (__powerc)
  17. #pragma options align=mac68k
  18. #endif
  19. struct CacheStruct {
  20.     long usage;
  21.     OSType ftype;
  22.     OSType fcreator;
  23.     Handle suite;
  24. };
  25. #if defined(powerc) || defined (__powerc)
  26. #pragma options align=reset
  27. #endif
  28.  
  29. typedef struct CacheStruct CacheRecord;
  30.  
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34.  
  35. Boolean GetTheIcon(DTPBRec* pbdt,SignedByte icon_to_get,OSType fcreator,OSType ftype,short dtrn);
  36. OSErr GetDTDBIcon(OSType ftype,OSType fcreator,short* cookie,SignedByte icon_to_get,DTPBRec* pbdt);
  37. OSErr GetDTDBIconH(OSType ftype,OSType fcreator,short* cookie,SignedByte icon_to_get,Handle* iconh);
  38. OSErr GetDTDBAddSuite(Handle suite,OSType ftype,OSType fcreator,short* cookie,SignedByte icon_to_get,OSType icon_to_put);
  39. OSErr GetDTDBIconSuiteUncached(OSType ftype,OSType fcreator,Handle* suite);
  40. OSErr GetDTDBIconSuiteCached(OSType ftype,OSType fcreator,Handle* suite);
  41. void InitICIconSuites(void);
  42.  
  43. #ifdef __cplusplus
  44. }
  45. #endif
  46.  
  47. #endif /* __H_IC_IconSuites__ */
  48.  
  49.  
  50.